function messageMonthDetail() {
    $.get('/admin/visual/message_month_info').done(function (data) {
        var myChart = echarts.init(document.getElementById('message_month_info'),'macarons');
        myChart.setOption({
            tooltip: {
                trigger: 'axis'
            },
            legend: {
                data: ['会员', '游客']
            },
            toolbox: {
                show: true,
                feature: {
                    dataView: {show: true, readOnly: false},
                    magicType: {show: true, type: ['line', 'bar']},
                    restore: {show: true},
                    saveAsImage: {show: true}
                }
            },
            calculable: true,
            xAxis: [
                {
                    type: 'category',
                    data: data.time
                }
            ],
            yAxis: [
                {
                    type: 'value',
                    axisLabel: {
                        formatter: '{value} 条'
                    }
                }
            ],
            series: [
                {
                    name: '会员',
                    type: 'bar',
                    data: data.user,
                    markPoint: {
                        data: [
                            {type: 'max', name: '最大值'},
                            {type: 'min', name: '最小值'}
                        ]
                    },
                    markLine: {
                        data: [
                            {type: 'average', name: '平均值'}
                        ]
                    }
                },
                {
                    name: '游客',
                    type: 'bar',
                    data: data.guest,
                    markPoint: {
                        data: [
                            {type: 'max', name: '最大值'},
                            {type: 'min', name: '最小值'}
                        ]
                    },
                    markLine: {
                        data: [
                            {type: 'average', name: '平均值'}
                        ]
                    }
                }
            ]
        });
        window.onresize = myChart.resize;
    });
}